cmake_minimum_required(VERSION 3.5.1)
project(Sort)

set(SORT_SRC sort.c)

add_library(LSort STATIC ${SORT_SRC})
set_target_properties(LSort PROPERTIES OUTPUT_NAME lsort)

add_library(lsort SHARED ${SORT_SRC})

if(LINUX)
	install(TARGETS LSort ARCHIVE DESTINATION ${INSTALL_DIR}/lib/liblds)
	install(TARGETS lsort LIBRARY DESTINATION 
		${INSTALL_DIR}/lib/${CMAKE_LIBRARY_ARCHITECTURE})
	install(FILES ${INCLUDE_DIR}/Sort/sort.h DESTINATION 
		${INSTALL_DIR}/include/liblds)
endif()
